<?php
/**
 * widget actions.
 *
 * @package    anchor
 * @subpackage widget
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class widgetActions extends sfActions
{
	/**
	 * Widget to display new project
	 * @param sfWebRequest $request
	 */
	public function executeNewproject(sfWebRequest $request)
	{
		if($request->isXmlHttpRequest())
			$this->items = Doctrine::getTable("project")->getNewProjectList(sfConfig::get('app_widget_items_count'));
	}
	/**
	 * Widget to display hot project
	 * @param sfWebRequest $request
	 */
	public function executeHotproject(sfWebRequest $request)
	{
		if($request->isXmlHttpRequest())
			$this->items = Doctrine::getTable("project")->getHotProjectList(sfConfig::get('app_widget_items_count'));
	}
	/**
	 * Widget to display top projects
	 * @param sfWebRequest $request
	 */
	public function executeTopproject(sfWebRequest $request)
	{
		if($request->isXmlHttpRequest())
			return $this->renderText('No results.');
	}
	/**
	 * Widget to dispay new articles
	 * @param sfWebRequest $request
	 */
	public function executeNewarticles(sfWebRequest $request)
	{
		if($request->isXmlHttpRequest())
			return $this->renderText('No results.');
	}
	/**
	 * Widget to display articles content
	 * @param sfWebRequest $request
	 */
	public function executeAticlescontent(sfWebRequest $request)
	{
		if($request->isXmlHttpRequest())
			return $this->renderText('No results.');
	}
}